package com.ruoyi.flowable.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 节点配置业务对象 flow_bpmn_config
 *
 * @author zxw
 * @date 2023-03-28
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class BpmnConfigBo extends BaseEntity {

    /**
     * 配置ID
     */
    @NotNull(message = "配置ID不能为空", groups = { EditGroup.class })
    private Long configId;

    /**
     * 事项版本ID
     */
    @NotNull(message = "事项版本ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long appVersionId;

    /**
     * 节点配置
     */
    @NotBlank(message = "节点配置不能为空", groups = { AddGroup.class, EditGroup.class })
    private String nodeConfig;

    /**
     * 驳回节点
     */
    private String rejectNode;


}
